package com.hgx.alibab.consumer.order02.service;

import com.hgx.alibab.consumer.order02.entity.Payment;
import com.hgx.springcloud.common.entities.response.CommonResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-provider-payment", fallback = PaymentFeignFallbackHandler.class)
public interface IPaymentFeignService {

    @GetMapping("/payment/{id}")
    CommonResultResponse<Payment> getPayment(@PathVariable("id") Integer id);
}
